#ifndef TABBUTTONWIDGET_H
#define TABBUTTONWIDGET_H

#include <QWidget>

namespace Ui {
class TabButtonWidget;
}

class TabButtonWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TabButtonWidget(QWidget *parent = nullptr);
    ~TabButtonWidget();

    // 设置按钮图标
    void setTabIcon(const QIcon &icon);

    // 设置文本
    void setTabText(const QString &text);

    //
    void updateWthatIs(QString str);
private slots:
    void on_close_btn_clicked();

signals:
    void clickCloseBtn();

private:
    Ui::TabButtonWidget *ui;
};

#endif // TABBUTTONWIDGET_H
